using UnityEngine;
using System.Collections;

namespace Controller { 
    public class MasterController : MonoBehaviour {

        private Model.BallSimulation ballSimulation;
        private View.BallView ballView;

	    // Use this for initialization.
	    void Start () {
            ballSimulation = new Model.BallSimulation(10);
            ballView = new View.BallView(ballSimulation);
	    }

        // Use this to run game logic.
        void FixedUpdate()
        {
            ballSimulation.Update();
            ballView.Update();
        }

        // Use this to draw objects on screen.
        void OnGUI() 
        {
            ballView.OnGUI();
        }
    }
}